﻿using FPDAM.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestModule
{
    /// <summary>
    /// 测试模块
    /// </summary>
    partial class TestBaseMethod
    {
        /// <summary>
        /// 注册需要测试的方法名
        /// </summary>
        private void RegisteFunctions()
        {
            this.RegisteFunction("TestInsertMethod");
            //...
        }

        public void TestInsertMethod()
        {
            ArcSegment arc = new ArcSegment(new Point3D(100, 100), 50, true);
            ArcSegment arc2 = new ArcSegment(new Point3D(100, 100), 50, Math.PI, Math.PI * 2, ArcDirction.UNCLOCK_WISE);

            LineSegment line = new LineSegment(new Point3D(100, 0), new Point3D(100, 300));
            List<Point3D> Result = arc.Intersect(line);

          //  this._curveSegs.Add(arc);
            this._curveSegs.Add(arc2);

            this._curveSegs.Add(line);
            this._points.AddRange(Result);
        }
    }
}
